package com.mjkj.order_feign.config;

import feign.Logger;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {

    // 重试机制
    @Bean
    public Retryer myRetryer() {

        return Retryer.NEVER_RETRY;
        //return new Retryer.Default(100, 1000, 3);
    }

    // 日志级别
//    @Bean
//    Logger.Level feignLoggerLevel() {
//        return Logger.Level.FULL;
//    }
}
